// class: Rules for extracting transactions

#include <iostream>
#include <cstring>
using namespace std;

// struct
class Human {
	public:
		void setinfo( const int new_age=0, const char* new_name="wuming" ) {
			age = new_age;
			strcpy(name, new_name);
		}

		void getinfo( ) {
			cout << "name = " << name  << endl;
			cout << "age = " << age << endl;
		}
	private:
		int age;
		char name[16];
};


// desinger
// -------------------------------------------------------------------
// user


int main( void ) {
	Human h; // Define a struct or a class.
	
	h.setinfo( 22, "xiangfei" );
	h.getinfo( );

	return 0;
}

